import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '名称',
    align:"center",
    width:130,
    dataIndex: 'growthcycleName'
  },
  {
    title: '特点',
    align:"center",
    width:120,
    dataIndex: 'growthcycleMemo'
  },
  {
    title: '分类',
    align:"center",
    width:120,
    dataIndex: 'category_dictText'
  },
  {
    title: '占比',
    align:"center",
    slots: { customRender: 'proportion' },
  },
  {
    title: '排序',
    align:"center",
    width:100,
    dataIndex: 'position',
    slots: { customRender: 'sort' },
  },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    field: 'growthcycleName',
    label: '名称',
    component: 'Input',
    colProps: { span: 16 },
  }
];
